<table class="edit_table">
  <%= form_for [:admins, @department] do |f| %>
      <tr>
        <td>部门名称:</td>
        <td><%= f.text_field :name %></td>
      </tr>
      <tr>
        <td colspan="4">
          <%= f.submit'确认',:class => 'btn btn-primary' %>
          <%= link_to '返回',admins_departments_path,:class => 'btn btn-info' %>
        </td>
      </tr>
  <% end %>
</table>

